<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@ include file="/public/pathvariable.jsp" %>
<!DOCTYPE html>
<html>

    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache"> 
		<meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> 
		<meta http-equiv="expires" content="0">
        <title>信息方案列表</title>
        <link rel="stylesheet" href="<%=basePath %>css/style.css">
        <link rel="stylesheet" href="<%=basePath %>css/msg.css">
        <link rel="stylesheet" href="<%=basePath %>css/ui_base.css">
        <link rel="stylesheet" href="<%=basePath %>css/f_style.css">
        <!--<link rel="stylesheet" href="<%=basePath %>css/public.css">-->
    </head>

    <body ng-app="listApp">
        <!--抬头bar-->
        <jsp:include page="/public/header.jsp" />
        <div class="main w clearfix">
            <!--主窗口-->
            <div class="class_rg" ng-controller="tableCtrl" style="width:1200px">
                <!--内容区-->
                <div class="path_">
                    <a href="<%=basePath %>index.jsp?parId=0">首页</a> >
                    <a href="<%=basePath %>programme/index.jsp?parId=2">方案管理</a> >
                    <a href="<%=basePath %>programme/programmeList.jsp?parId=201">信息方案配置</a> 
<!--                <div ng-tag style="display:inline"></div>-->
                </div>
                <div class="Top_cag">
                    <div class="t_bleft fl" style="width:945px;">
                        <div class="fl mbine unitLWidth">
                            <strong class="th strWidth">信息方案名称 </strong>
                            <input type="text" class="ui_text" ng-model="vm.ifm_name">
                        </div>
                        <div class="fl mbine unitLWidth">
                            <strong class="th" style="float:left;margin-right:30px;">所属组织 </strong>
                            <input type="hidden" ng-model="vm.groupId" id="groupIds">
                            <div ag-select style="display:inline" ajaxs="<%=basePath%>group/selectAllName" group-id="vm.groupId"></div>
                        </div>
                        <div class="fl mbine">
                            <strong class="th" style="float:left">方案状态 </strong>
                            <div class="ui_select_msg selectListObj" style="float:left;" >
                                <input type="hidden" id="ifm_isdelete" value="" autocomplete="off" />
                                <span class="ui_s_t_msg" >全部</span>
                                <div class="ui_s_bk_msg" style="display: none;z-index:99;">
                                    <a href="javascript:void(0)" type="">全部</a>
                                    <a href="javascript:void(0)" type="1">开启</a>
                                    <a href="javascript:void(0)" type="0">关闭</a>
                                </div>
                            </div>
                        </div>
                        <div class="divline v5"></div>
                        <div class="fl mbine unitLWidth">
                            <strong class="th strWidth">信息方案备注 </strong>
                            <input type="text" class="ui_text" ng-model="vm.ifm_note">
                        </div>
                        <div class="fl mbine unitLWidth">
                            <strong class="th strWidth">所属类别名称 </strong>
                            <input type="text" class="ui_text" ng-model="vm.ifm_categoryName">
                        </div>
                    </div>
                    <div class="t_bright fl" style="padding:5px 0 0 0;width:210px;">
                        <a href="javascript:void(0)" class="ui_btn yellow" ng-click="getAjax()" id="Msearch">查询</a>
                        <a href="javascript:void(0)" data-url="programmeNameEdit.jsp" class="ui_btn green openAdd" id="pl_add">新增</a>
                        <!--<div class="divline v5"></div>-->
                        <!--<a href="<%=basePath %>programme/ruleList.jsp" class="ui_btn green">规则配置</a>-->
                    </div>
                </div>
                <div class="msg_class_table">
                    <div class="title">信息方案列表</div>
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="dtab">
                        <tr class="th">
                            <!--<th scope="col" width="100">序号</th>-->
                            <th scope="col" width="200" class="tc">信息方案名称</th>
                            <th scope="col" width="280" class="tc">信息方案备注</th>
                            <th scope="col" width="200" class="tc">所属类别名称</th>
                            <th scope="col" width="150" class="tc">名称备注类别</th>
                            <th scope="col" width="100" class="tc">资源</th>
                            <th scope="col" width="100" class="tc">关键词</th>
                            <th scope="col" width="140" class="tc">操作</th>
                        </tr>
 						<div id="waiting" ng-show='dLoading'>  
						    <img src="<%=basePath %>js/layer/skin/default/xubox_loading0.gif"> 
						</div>
                        <tr class="td fuzzy" ng-repeat="key in datas.returnData">
                            <!--<td ng-bind="key.ifm_id"></td>-->
                            <td class="tc"><span ng-bind="key.ifm_name"></span></td>
                            <td class="tc"><span title={{key.ifm_note}} ng-bind="key.ifm_note" style="width:274px;overflow:hidden; white-space:nowrap;text-overflow:ellipsis;display:block;"></span></td>
							<td class="tc"><span title={{key.ifm_categoryName}} ng-bind="key.ifm_categoryName" style="width:194px;overflow:hidden; white-space:nowrap;text-overflow:ellipsis;display:block;"></span></td>							                   
                            <td class="tc">
                            	<a href="javascript:void(0)" data-url="programmeNameEdit.jsp?ifm_id={{key.ifm_id}}&groupId={{key.groupId}}" class="green editUpdate">名称备注类别编辑</a>
                            </td>
                            <td class="tc">
                            	<a href="javascript:void(0)" data-url="programmeRscEdit.jsp?ifm_id={{key.ifm_id}}&groupId={{key.groupId}}" class="green openTit">资源编辑</a>
                            </td>
                            <td class="tc">
                            	<a href="javascript:void(0)" data-url="programmeKwdEdit.jsp?ifm_id={{key.ifm_id}}&groupId={{key.groupId}}" class="green openTit">关键词编辑</a>
                            </td>
                            <td class="tc">
                                <a href="javascript:void(0)" class="green modifyBtn" ng-click="modifyBtn(key.ifm_id,key.groupId)" id="update_check" >{{(key.ifm_isdelete==0?"开启":"关闭")}}</a>&nbsp;&nbsp;
                                <a href="javascript:void(0)" ng-click="domAjax('del',key.ifm_id,key.ifm_name)" class="green" id="delBtn">删除</a>
                            </td>
                        </tr>
						<tr class="pages">
							<td colspan="10">
	                        	<div class="ui_page">
	                            	<span class="ic fl pr20">共 <b ng-bind="datas.totalRecords"></b> 条记录</span>
	                                <span class="sw fl pr20" id="jssum">显示 <a ng-class="$index==0?'cur':''" ng-repeat="key in [10,20,50,100]" ng-bind="key" pagen> </a></span>
	                                <span class="gopg fr">跳转到<input type="button" class="btn" value="go" ng-click="setAjax({'pageindex':keyInt})"><input type="text" min="1" class="txt" ng-model="keyInt" onkeyup="jsCk(this)"></span>
	                                <div class="pg fr" id="jsgo">
	                                	<a href="javascript:void(0)" data-href="{{prevIndex}}" class="str" pageg ng-show="vm.pageIndex<2?false:true"><</a>
	                                    <a ng-class="key==vm.pageIndex?'cur':''" data-href="{{key}}" ng-repeat="key in pages" ng-bind="key" pageg> </a>
	                                    <a href="javascript:void(0)" data-href="{{nextIndex}}" class="end" pageg ng-show="vm.pageIndex>pages_e-1?false:true">></a>
	                                </div>
	                            </div>
	                        </td>
	                    </tr>
                    </table>
                </div>
                <!--内容区-->
            </div>
        </div>

        <script src="<%=basePath %>js/jquery.min.1.8.2.js"></script>
        <script src="<%=basePath %>js/jquery.easing.1.3.js"></script>
        <script src="<%=basePath %>js/jquery.mousewheel.js"></script>
        <script src="<%=basePath %>js/layer/layer.min.js"></script>
        <script src="<%=basePath %>js/angular.min.1.2.5.js"></script>
        <script src="<%=basePath %>js/laydate/laydate.js"></script>
        <script src="<%=basePath %>js/config.js"></script>
        <script src="<%=basePath %>js/userSession.js"></script>
        <script src="<%=basePath %>programme/js/angular.programmeList.js"></script>
        <link href="<%=basePath %>js/Validation/css/validationEngine.jquery.css">
        <script src="<%=basePath %>js/Validation/js/jquery.validationEngine-zh_CN.js"></script>
        <script src="<%=basePath %>js/Validation/js/jquery.validationEngine.js"></script>

        <style>
        	.tc{text-align: center !important;}
            .strWidth {width: 90px !important;}
            .unitLWidth {width: 320px !important;}
        </style>
        <script>
            function jsCk(t) {
                if(!/^[1-9][0-9]*$/g.test(t.value)) {
                    t.value = "";
                    return false;
                }
            }
        </script>
    </body>
</html>